package com.jaws.demo.controller;

import com.jaws.core.common.vo.OpRequest;
import com.jaws.core.common.vo.OpResponse;
import com.jaws.demo.vo.UserQueryVO;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
@Slf4j
public class FeignController {

	/**
	 * 账户查询
	 *
	 * @param userid
	 * @return
	 * @author maojian
	 * @date 2018-03-12 15:14:19
	 * @since v1.0.0
	 */
	@ApiOperation(value = "测试账户查询接口")
	@PostMapping(value = "/api/account/query_account_by_user")
	public OpResponse queryAccount(@RequestBody OpRequest<UserQueryVO> req) {
		return OpResponse.success();
	}

}
